package com.jinzhi.jzweb.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.jinzhi.jzapi.certificate.pojo.OrgRolesListVo;
import com.jinzhi.jzapi.certificate.pojo.TrainInfoListVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jinzhi.jzweb.dao.TrainInfoDao;
import com.jinzhi.jzweb.domain.TrainInfoDO;
import com.jinzhi.jzweb.service.TrainInfoService;
import com.jinzhi.common.base.CoreServiceImpl;

import java.util.Map;

/**
 * 
 * <pre>
 * 
 * </pre>
 * <small> 2021-01-13 14:27:41 | lance</small>
 */
@Service
public class TrainInfoServiceImpl extends CoreServiceImpl<TrainInfoDao, TrainInfoDO> implements TrainInfoService {



    @Override
    public Map trainInfoList(Map map) {
        return baseMapper.trainInfoList(map);
    }

    @Override
    public Map trainInfoByUser(Map map) {
        return baseMapper.trainInfoByUser(map);
    }

    @Override
    public Page<Map> selectListPage(int current, int number, Map map) {
        // 新建分页
        Page<Map> page = new Page<Map>(current, number);

        return page.setRecords(this.baseMapper.dyGetUserListPx(page,map));
    }
}
